<template>
   <van-tabbar v-model="active" class="bottom"  active-color="#1a9956" :route="true" >
  <van-tabbar-item name="home" icon="home-o"  to="/home">首页</van-tabbar-item>
  <van-tabbar-item name="search" icon="qr" to="/category">分类</van-tabbar-item>
  <van-tabbar-item name="balance-list-o" icon="balance-list-o" to="/cart">我的进货单</van-tabbar-item>
  <van-tabbar-item name="setting" icon="manager-o" to="/my">我的</van-tabbar-item>
  <van-icon />
</van-tabbar>
</template>

<script lang="ts" setup>
 import {ref} from 'vue'
 let active = ref("home")
</script>

<style scoped>
.bottom{
  height:60px;
  width: 100%;
  position: fixed;
  bottom: 0;
  z-index: 999;
}
</style>